x86: suppress BTI mitigations around S3 suspend/resume
authorJan Beulich <jbeulich@suse.com>
Mon, 16 Apr 2018 12:09:55 +0000 (14:09 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Apr 2018 12:09:55 +0000 (14:09 +0200)
commit710a8ebf2bc111a34bba04d1c85b6d07ed3d9389
tree161f820b0aedee8afd7abd0a53ef5f0492bda543
parentcb2a4a449dfd50af309a333aa805835015fbc8c8
x86: suppress BTI mitigations around S3 suspend/resume

NMI and #MC can occur at any time after S3 resume, yet the MSR_SPEC_CTRL
may become available only once we're reloaded microcode. Make
SPEC_CTRL_ENTRY_FROM_INTR_IST and DO_SPEC_CTRL_EXIT_TO_XEN no-ops for
the critical period of time.

Also set the MSR back to its intended value.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/acpi/power.c